﻿using Project1.Views;

[assembly: CommandClass(typeof(Project1.Command))]
namespace Project1 {
    public class Command {
        [CommandMethod("lh1")]
        public void Test1() {
            Acap.ShowModalWindow(new MainView());
        }

        [CommandMethod("lh2")]
        public void HelloWorld() {
            using var tr = new DBTrans();
            Env.Editor.WriteMessage("hello world!");
            Env.Printl("开始画线：");
            Line line = new(new(0, 0, 0), new(1, 1, 0));
            tr.CurrentSpace.AddEntity(line);
            Env.Print("画线结束");
            Env.Editor.ZoomWindow(new(-1, -1, 0), new(2, 2, 0));
        }
    }
}
